//
//  UICollectionView+YCTools.h
//  Pods
//
//  Created by Apple on 2022/11/3.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UICollectionView (YCTools)

+ (UICollectionView *)collectionViewWithFrame:(CGRect)frame
                                     delegate:(id)delegate
                                   dataSource:(id)dataSource;

+ (UICollectionView *)collectionViewWithFrame:(CGRect)frame
                                      bgColor:(UIColor *)bgColor
                                     delegate:(id)delegate
                                   dataSource:(id)dataSource;

+ (UICollectionView *)collectionViewWithFrame:(CGRect)frame
                                       layout:(UICollectionViewFlowLayout *)layout
                                     delegate:(id)delegate
                                   dataSource:(id)dataSource;

+ (UICollectionView *)collectionViewWithFrame:(CGRect)frame
                                      bgColor:(UIColor *)bgColor
                                       layout:(UICollectionViewFlowLayout *)layout
                                     delegate:(id)delegate
                                   dataSource:(id)dataSource;

@end

NS_ASSUME_NONNULL_END
